# the minimum version of CMake.
cmake_minimum_required(VERSION 3.5.0)
project(ContentSlot)

set(NATIVERENDER_ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR})

if(DEFINED PACKAGE_FIND_FILE)
    include(${PACKAGE_FIND_FILE})
endif()

include_directories(${NATIVERENDER_ROOT_PATH}
                    ${NATIVERENDER_ROOT_PATH}/include
                    ${NATIVERENDER_ROOT_PATH}/ContentSlot)

add_library(entry SHARED napi_init.cpp ContentSlot/Xcom.cpp)

add_subdirectory(rlottie)

#include <multimedia/image_framework/image/image_source_native.h>
#include <multimedia/image_framework/image/pixelmap_native.h>

target_link_libraries(entry PUBLIC libace_napi.z.so librcp_c.so rlottie
                                                            libace_napi.z.so
                                                            libace_ndk.z.so
                                                            libnative_window.so
                                                            libnative_drawing.so
                                                            libhilog_ndk.z.so
                                                            libuv.so
                                                            libpixelmap_ndk.z.so
                                                            libimage_source_ndk.z.so
                                                            librawfile.z.so
                                                            libpixelmap.so
                                                               )

target_link_directories(entry PUBLIC ${HMOS_SDK_NATIVE}/sysroot/usr/lib/aarch64-linux-ohos)